package titt.util.io.pipe;

import java.io.InputStream;
import java.io.OutputStream;

import titt.io.socket.in.TITTInputStream;
import titt.io.socket.out.TITTOutputStream;

public abstract class UtilPiper implements StreamPiper {

	@Override
	public void pipe(TITTInputStream in, TITTOutputStream out, int length) throws Exception {
		pipe(in.asStream(), out.asStream(), length);
	}

	@Override
	public void pipe(TITTInputStream in, TITTOutputStream out, int length, PipeListener pl) throws Exception {
		pipe(in.asStream(), out.asStream(), length, pl);
	}

	@Override
	public void pipe(InputStream in, OutputStream out, int length) throws Exception {
		pipe(in,out,length,null);
	}

}
